package com.soft.javase.day06.shallowcopy;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/24
 */
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Phone phone = new Phone("小米", 6666.6);
        Person person = new Person("小明", phone);
        Person person1 = person.clone();
        person.setName("小美");
        phone.setPrice(7777.7);
        System.out.println(person);
        System.out.println(person1);

    }
}
